<script type="text/javascript">
$(document).ready(function(){

	function get_message_cost_ajax(){
		$.ajax({
			url:'<?php echo base_url() ?>user_sms/get_num_msg_ajax',
			type:'post',
			data: $('#add_new_order_sms').serialize(),
			beforeSend:function(){
				$('.cost_result').html('.....');
			},
			success:function(data){
				$('.cost_result').html(data);
			},
			error:function(){
				$('.cost_result').html('ajax Error');
			}
			});
	}
	
	$('#get_number_message').bind('click',function(){
		get_message_cost_ajax();
		return false;
	}
	);
	
});
</script>

<h1>
	<span></span><?= lang('label_sms_add_new_order') ?></h1>

<ul class="breadcrumb">
	<li><a href="<?= base_url() ?>"><?= lang('label_home') ?></a></li>
	<li><?= lang('label_sms_add_new_order') ?></li>
</ul>


<div class="page">
    <form class="forms inside_1" id="add_new_order_sms" action="<?php echo current_url() ?>" method="post">

        <div class="text">
            <label for="amount">
                <?php echo lang('label_sms_amount') ?>
            </label>
            <samp>
                <input name="amount" id="amount" placeholder="<?php echo lang('label_wallet_amount') ?>" value="<?php echo form_val('amount') ?>" type="text" />
                <a href="#" id="get_number_message"><?php echo lang('label_sms_get_num_msg')?></a>
            </samp>
        </div>
        <div>
        <label></label>
        <samp class="cost_result"></samp>
        </div>
        
        <div class="text">
            <label for="bank_name">
                <?php echo lang('label_wallet_bank') ?>
            </label>
            <samp>
                <input name="bank_name" id="bank_name" placeholder="<?php echo lang('label_wallet_bank') ?>" value="<?php echo form_val('bank_name') ?>" type="text" />
            </samp>
        </div>
    <div class="select">
            <label for="to_name">
                <?php echo lang('label_wallet_to_name') ?>
            </label>
            <samp>
            <?php echo form_dropdown('to_bank',get_bank_list(),set_value('to_bank')); ?>
            </samp>
        </div>
        <div class="text">
            <label for="sender_name">
                <?php echo lang('label_wallet_sender_name') ?>
            </label>
            <samp>
                <input name="sender_name" id="sender_name" placeholder="<?php echo lang('label_wallet_sender_name') ?>" value="<?php echo form_val('sender_name') ?>" type="text" />
            </samp>

        </div>  
        <div class="text">
            <label for="account_number">
                <?php echo lang('label_wallet_account_number') ?>
            </label>
            <samp>
                <input name="account_number" id="account_number" placeholder="<?php echo lang('label_wallet_account_number') ?>" value="<?php echo form_val('account_number') ?>" type="text" />
            </samp>

        </div> 
        <div class="textarea">
            <label for="note">
                <?php echo lang('label_wallet_note') ?>
            </label>
            <samp>
                <textarea name="note" id="note" placeholder="<?php echo lang('label_wallet_note') ?>" ><?php echo form_val('note') ?></textarea>
            </samp>
        </div>

        <div class="submit">
            <input name="submit" value="<?= lang('label_done') ?>" type="submit"  >
        </div>

    </form>
</div>
